/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cichlid.seprphase3.Utilities;

/**
 *
 * @author Velislav
 */
public class SpamBar 
{
 private final double MAX_VALUE=108;
 private double spamBarValue = 5;
 
 
 public synchronized void increment(double value)
 {
     if(spamBarValue + value <= MAX_VALUE)
        spamBarValue += value;
 }
 
 public synchronized void decrement(double value)
 {
     if(spamBarValue - value>=0)
         spamBarValue -= value;
 }
    
 public synchronized double getSpamBarValue()
 {
     return spamBarValue;
 }
 
 public synchronized void setSpamBarValue(double value)
 {
     spamBarValue = value;
 }
}

